toEither

open override fun toEither(): Either<Throwable, T>

Converts this Try to Either.

Return

Left if this is Failure or Right if this is Success.